# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-google-spring
pkgdesc="HP Chromebook 11 G1"
pkgver=4
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
	alsa-ucm-conf
	depthcharge-tools
	linux-postmarketos-exynos5
	postmarketos-base
	postmarketos-cros-common
"
makedepends="devicepkg-dev"
source="deviceinfo modules-initfs"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="WiFi/BT and MFC firmware"
	depends="linux-firmware-mrvl linux-firmware-s5p-mfc"
	mkdir "$subpkgdir"
}

sha512sums="
142c64f5a6abae8c8431b2510f4b6afbd5cc7f9c12040edc25f02c0977a96f8daa764cbb7838b46d6c4462ce0bbeb972b4448e3f2cf358d53053d5805cc33d3d  deviceinfo
59a59149b995f8936da68b08852996725da70fc51b43204180602537c4fc6c59e21452994773685b49cf1e3add76cfd5d72ea9ce0b79aacaa9c4ef93295baa61  modules-initfs
"
